package cn.bluethink.eguan.core.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.bluethink.eguan.core.entity.EgMemberEntity;
import cn.bluethink.eguan.core.entity.MemberEntity;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author 苏州中科蓝迪公司所有(c)2016-2021
 * @version 0.2.0
 * @brief 驿馆+（EGUAN）
 * @note 修订历史：
 * 1、wanglei于2018/10/13设计并构建初始版本v0.2.0
 */
public interface EgMemberMapper extends Mapper<EgMemberEntity> {

    /**
     * 根据条件查询
     * 
     * @param id
     * @param buid
     * @param name
     * @return
     * @throws Exception
     */
    List<MemberEntity> selectMembersByCondition(@Param("id") Long id, @Param("buid") boolean buid, @Param("name") String name) throws Exception;

    /**
     * 批量添加成员
     * @param list
     * @return
     * @throws Exception
     */
	public int insertMembers(@Param("list") List<EgMemberEntity> list) throws Exception;
}
